<?php
/* @var $this DefaultController */

$this->breadcrumbs=array(
	$this->module->id,
);
?>

<?php
if (!empty($models)) {
    ?>
<form action="" method="post" id="frmInterested">
    <input type="hidden" value="" name="Action" id="Action">
    <input type="hidden" value="1" name="Current" id="Current">
    <div style="display:block;" class="iminterestedcontent">
        <div class="iminterestedsearchrow" style="display: none;">
          
            <div style="display: none;" class="ziperrorplace">
                <div class="ziperror">
                    <div class="ziperrorblock">
                        <p>
                            Please enter a valid zip code.</p>
                    </div>
                    <div class="redarrowdown">
                        <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/redarrowdown.png">
                    </div>
                </div>
            </div>
            <div class="iminterestedsearchcol1">
                <p>
                    I'm looking for:</p>
            </div>
            <div class="iminterestedsearchcol2">
                Men
                <div style="display:none;">
                    <div class="iminterestedsearchcol2top">
                        <input type="radio" value="2" name="GenderId" id="GenderIdWomen" data-property="GenderIdWomen">
                        <p>
                            <label for="GenderIdWomen">
                                Women</label></p>
                    </div>
                    <div class="iminterestedsearchcol2bottom">
                        <input type="radio" checked="" value="1" name="GenderId" id="GenderIdMen" data-property="GenderIdMen">
                        <p>
                            <label for="GenderIdMen">
                                Men</label></p>
                    </div>
                </div>
            </div>
            <div class="iminterestedsearchcol3">
                <div class="iminterestedagesexpandedplace">
                    <div class="iminterestedagesexpanded">
                        <div class="searchparameterexpanded">
                            <p data-property="age">who are 20 - 30</p>
                            <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/arrowup.png">
                            <p class="clearfix">
                                &nbsp;</p>
                        </div>
                        <div class="searchparameteroptionlast option1 searchageformitems">
                            <p>
                                who are
                            </p>
                            <input type="text" onkeypress="return onlyNumbers();" maxlength="3" value="20" name="MinAge" class="border-color-alt" id="MinAge">
                            <p>
                                to</p>
                            <input type="text" onkeypress="return onlyNumbers();" maxlength="3" value="30" name="MaxAge" class="border-color-alt" id="MaxAge">
                            <p class="clearfix">
                                &nbsp;</p>
                        </div>
                    </div>
                </div>
                <div class="iminterestedages">
                    <div class="searchparameter">
                        <p data-property="age">who are 20 - 30</p>
                        <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/arrowup.png">
                        <p class="clearfix">
                            &nbsp;</p>
                    </div>
                </div>
            </div>
                <div class="iminterestedsearchcol4">
                    <div class="iminterestedzipexpandedplace">
                        <div class="iminterestedzipexpanded">
                            <div class="searchparameterexpanded">
                                <p data-property="ZipCode">near 00501</p>
                                <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/arrowup.png">
                                <p class="clearfix">
                                    &nbsp;</p>
                            </div>
                            <div class="searchparameteroptionlast option2 searchzipformitems">
                                <p>
                                    near</p>
                                <input type="text" maxlength="7" value="00501" name="SearchZipPostalCode" class="border-color-alt" id="SearchZipPostalCode">
                                <p class="clearfix">
                                    &nbsp;</p>
                            </div>
                        </div>
                    </div>
                    <div class="iminterestedzip">
                        <div class="searchparameter">
                            <p data-property="ZipCode">near 00501</p>
                            <img src="<?php echo FRONT_SITE_URL ?>www/images/images1/arrowup.png">
                            <p class="clearfix">
                                &nbsp;</p>
                        </div>
                    </div>
                </div>
            <div class="iminterestedsearchcol5">
                <p>
                    <a title="Go" class="button_style" href="javascript:void(0);" id="InterestedSearch">
                        Go</a></p>
            </div>
            <br>
        </div>
        
        <div style="" id="SearchResultsContainer"><input type="hidden" value="1" id="CurrentIndex">
<input type="hidden" value="20" id="hMinAge">
<input type="hidden" value="30" id="hMaxAge">
<input type="hidden" value="00501" id="hZip">
<input type="hidden" value="US-NY" id="hLocation">
<input type="hidden" value="Male" id="hGender">
    <div class="iminterestedusernamerow">
        <div class="iminterestedusernameleft">
            <p class="imininterestuser">
                <a href="" class="color-alt"><?php echo $models->username; ?></a></p>
            <p class="iminteresteduserinfo">
                    <?php
                    $birthDate = $models->profile->birthdate;
                    $dob = date("Y-m-d", strtotime($birthDate));

                    $dobObject = new DateTime($dob);
                    $nowObject = new DateTime();

                    $diff = $dobObject->diff($nowObject);

                    echo $diff->y;
                    ?>

                
                
                | West Haven, <?php echo $models->profile->country; ?> 
                </p><div class="iminterestedfixonline">
                    <div>
                        <p class="iminteresteduserinfo2">
                            <?php echo $models->profile->gender; ?> 
| <?php echo $models->profile->tall; ?> | Last Activity: Today                        </p>
                    </div>
                </div>
            <p></p>
        </div>



        <div class="iminterestedusernameright">
            <div class="areyouinterestedtext">
                <p class="color-alt">Are you interested in him?</p>
            </div>
            <div class="areyouinterestedctabtns">
                <p>
                    <a title="Yes, Next Profile" class="button_style" href="javascript:void(0);" id="InterestedYes">
                        Yes, Next Profile</a></p>
                <p>
                    <a title="No, Next Profile" class="button_style_gray" href="javascript:void(0);" id="InterestedNo">
                        No, Next Profile</a></p>
            </div>
        </div>
        <p class="clearfix">
            &nbsp;</p>
    </div>
    <div class="iminteresteduserphotorow">
        <a href="">
            <img border="0" alt="" src="<?php echo FRONT_SITE_URL ?>www/images/images1/<?php echo $models->avatar; ?>"></a>
    </div>
</div>
    </div>
    </form>
<?php } ?>